package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Food;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * @author HLJ
 */
public interface FoodDao {
    /***
      * @Author: HLJ
      * @Description: 通过上传的excel文件，遍历后添加膳食
      * @Date: 2020/11/25
      * @Param food: 膳食
      * @return: void
      **/
    public void add(Food food);

    public int findCountByFId(Integer id);

    public Food findById(Integer id);

    public Page<Food> findByCondition(String queryString);

    public void edit(Food food);

    public void delete(Integer id);
}
